home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
var
/
lib
/
dpkg
/
info
/
klogd.postinst
< prev
next >
Wrap
Text File
|
2008-08-29
|
639b
|
42 lines
#! /bin/sh
set -e
if [ "$1" = "configure" ]
then
case $2 in
1.4.1-18|1.4.1-19|1.4.1-20|1.4.1-21|1.5-1)
chmod 644 /etc/default/klogd
;;
esac
if [ -f /etc/init.d/klogd -a -n "$2" ]
then
set +e
sh /etc/init.d/klogd stop
sleep 1
set -e
fi
update-rc.d klogd start 11 2 3 4 5 . stop 89 1 . >/dev/null
adduser --system --quiet --group --no-create-home klog || true
# restarting daemon
#
if [ -f /etc/init.d/klogd ]
then
set +e
if [ -x /usr/sbin/invoke-rc.d ]
then
invoke-rc.d klogd start
else
sh /etc/init.d/klogd start
fi
set -e
fi
fi
exit 0